﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Repository
{
    public class Employees
    {
        public List<string> names;
        public Employees()
        {
            names = new List<string>();
            names.Add("Alain");
            names.Add("Andre");
            names.Add("Bart"); 
            names.Add("Cyriel");
            names.Add("Dirk");
            names.Add("Erik");
            names.Add("Frank");
        }
        public IEnumerable<string> RetrieveThroughIEnumerable(string pattern)
        {
            return names.Where(c => c.StartsWith(pattern)) ;
        }


        public IList<string> RetrieveThroughList(string pattern)
        {
            return names.Where(c => c.StartsWith(pattern)).ToList();
        }
    }

}
